package com.cfs.chat.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Description: WebSocket 配置类
 * @Author: fengwei
 * @Date: 2024-11-27 17:25
 **/
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        // 注册 WebSocket 端点
        return new ServerEndpointExporter();
    }

}
